new Vue({
    el:'#app',
    
    data:{
        phone:'',
        pass:''
    },
    
    methods:{
        login(){
            if(this.phone!=""&&this.pass!=""){
                console.log("账户名："+ this.phone,"密码"+ this.pass );
            }
            //获取到输入的账号,密码, 发请求
            
            //可以随时清空输入框的值
            this.phone = '';
            this.pass = '';
        }
    }
})